<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

function smarty_function_check_selected($params, &$smarty) {
	$list = split(", ",$params[from]);
	
	foreach($list as $s) {
		
		
	error_log( " $s === $params[item] ");
		if($s === $params[item]){
			return " selected";
		}			
	}

} 
/* vim: set expandtab: */

 
?>
